import { RoleCreateDto, RoleListDto, RoleSingleDto, RoleUpdateDto } from '../dtos/role.dto';
import RoleModel from '../models/role.model';
import { PageRequest } from '../types';
import { BaseService } from './.service';

/**
 * 角色服务类
 */
export class RoleService extends BaseService<RoleModel, RoleListDto, RoleSingleDto, RoleCreateDto, RoleUpdateDto> {
  constructor() {
    super(RoleModel, new RoleSingleDto(), new RoleListDto());
  }
}

/**
 * 角色服务实例
 */
export const roleService = new RoleService();
